package com.errol.sync.sync.extension;

import com.renjia.supervise.service.sync.DataSyncServiceImpl;
import com.renjia.supervise.service.sync.DatabaseSyncService;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

/**
 * 批次同步逻辑
 *
 * @author zhang xiao bin
 * @version v1.0
 * @date 2021/08/16
 * @since v
 **/
@Service(value = "payrollSyncService")
public class PayrollSyncServiceImpl extends com.renjia.supervise.service.sync.DataSyncServiceImpl {

    public PayrollSyncServiceImpl(com.renjia.supervise.service.sync.DatabaseSyncService databaseSyncService) {
        super(databaseSyncService);
    }

    @Override
    public <E> String syncData(Class<E> entityClass, LocalDate rangeLeft, LocalDate rangeRight, boolean updateEditedData) {
        return super.doSyncWrapper(entityClass, rangeLeft, rangeRight, updateEditedData);
    }
}
